package com.zz.parkingsystem.controller.inspector;

import com.zz.parkingsystem.entity.InsFeedback;
import com.zz.parkingsystem.service.InsFeedbackService;
import com.zz.parkingsystem.util.NumberUtil;
import com.zz.parkingsystem.util.Result;
import com.zz.parkingsystem.util.ResultGenerator;
import lombok.extern.log4j.Log4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

/**
 * @author ：zzz
 * @date ：Created in 2022/9/5 14:23
 * @description：aaa
 */

@RestController
@RequestMapping("ins/insfeed")
public class InsFeedbackController {
    @Resource
    private InsFeedbackService insFeedbackService;
    //添加巡检员反馈
    @PostMapping("/insertSelective")
    public Result insertSelective(@RequestBody InsFeedback record, HttpSession session){
        int i = insFeedbackService.insertSelective(record);
        return ResultGenerator.genSuccessResult(i);
    }
}
